package yxy.game.pm2.bean.module.rank.openserviceactive;


import java.util.ArrayList;

/**
 * @ClassName OpenServiceRushRankEnum
 * @Author jingtao-zheng
 * @Date 2022/7/7 10:32
 * @Version 1.0
 **/
public enum OpenServiceRushRankEnum {
    开服冲榜_武将比拼(1001),
    开服冲榜_竞技争雄(1002),
    开服冲榜_等级提升(1003),
    开服冲榜_齐心协力(1004),
    ;

    private int type;

    private OpenServiceRushRankEnum(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }
    public void setType(int type) {
        this.type = type;
    }

    public static OpenServiceRushRankEnum getOpenServiceRushRankEnum(int type) {
        switch (type) {
            case 1001 : return 开服冲榜_武将比拼;
            case 1002 : return 开服冲榜_竞技争雄;
            case 1003 : return 开服冲榜_等级提升;
            case 1004 : return 开服冲榜_齐心协力;
            default:
                break;
        }
        return null;
    }

    private static ArrayList<Integer> sequence = new ArrayList<Integer>();

    public static ArrayList<Integer> getSequence(){
        if(sequence.size() == 0) {
//			在活动期间4个冲榜类型按照点金冲榜 、副本冲榜 、剿匪冲榜 、扫荡冲榜
            sequence.add(开服冲榜_武将比拼.getType());
            sequence.add(开服冲榜_竞技争雄.getType());
            sequence.add(开服冲榜_等级提升.getType());
            sequence.add(开服冲榜_齐心协力.getType());
        }

        return sequence;
    }
}
